package com.imooc.service;

import com.imooc.BO.center.OrderItemsCommentBO;
import com.imooc.pojo.OrderItems;
import com.imooc.pojo.Orders;
import com.imooc.vo.MyCommentVO;
import com.imooc.vo.MyOrdersVO;

import java.util.List;

/**
 * 订单 Service
 *
 * @author gcq
 * @Create 2022-01-08
 */
public interface MyCommentsService {
    /**
     * 根据 orderId 查询对应评论
     * @param orderId
     * @return
     */
    public List<OrderItems> queryPendingComment(String orderId);

    /**
     * 保存评论
     * @param userId
     * @param orderId
     * @param commentBOList
     */
    public void saveComments(String userId, String orderId, List<OrderItemsCommentBO> commentBOList);

    /**
     * 根据 userId 查询对应评论
     * @param userId
     * @return
     */
    public List<MyCommentVO> queryMyComments(String userId);
}
